package main

import "fmt"

func main() {
	str := "123"
	funcName(str)
	var a interface{}
	//var a string = "123"
	//var a int = 10
	funcName(a)
}

func funcName(a interface{}) string {
	//cannot convert a (type interface{}) to type string: need type assertion
	value, ok := a.(string)
	if !ok {
		fmt.Println("It is not ok for type string")
		return ""
	}
	fmt.Println("The value is ", value)
	return value
}
